package firstcontent.gc;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: fxy
 * @Date: 2022/03/03/10:52
 * @Description: -Xms60m -Xmx60m -XX:SurvivorRatio=8 -XX:+PrintGCDetails -Xloggc:D:\gc.log
 *
 * -Xloggc:D:\gc.log ‐XX:+PrintGCDetails ‐XX:+PrintGCDateStamps ‐XX:+PrintGCTimeStamps
 * ‐XX:+PrintGCCause ‐XX:+UseGCLogFileRotation ‐XX:NumberOfGCLogFiles=10 ‐XX:GCLogFileSize=100M
 *
 * -Xms60m -Xmx60m -XX:+UseG1GC -XX:+PrintGCDetails  -Xloggc:D:\gc.log
 */
public class GCLogTest {
    public static void main(String[] args) {
        List list = new ArrayList<>();
        for(int i = 0;i<5000;i++){
            byte[] arr = new byte[1024*100];
            list.add(arr);
        }
    }
}
